// 组合式函数封装

import type { XtxGuessInstance } from '@/components/comonents'
import { ref } from 'vue'

/**
 * 猜你喜欢触底加载功能封装
 */
export const useGuessList = () => {
  // 绑定组件实例
  const guessRef = ref<XtxGuessInstance>()

  // 滚动触底
  const scrolltolower = () => {
    guessRef.value?.getMore()
  }

  return {
    guessRef,
    scrolltolower,
  }
}
